]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionPrefs: Don't (re-)bind text domain
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 3 Dec 2019 19:50:14 +0000 (20:50 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 6 Jan 2020 13:10:43 +0000 (13:10 +0000)
Gettext is already set up from the binary, no need to do it again
in JS.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/918

js/extensionPrefs/main.js

index 9d94c5a27a93361a701cd12dd7eb5a7113f2e395..9033165f6c2e7cb9483d34927a06dd74c2616f2b 100644 (file)
@@ -8,7 +8,6 @@ const Format = imports.format;
 
 const _ = Gettext.gettext;
 
-const Config = imports.misc.config;
 const ExtensionUtils = imports.misc.extensionUtils;
 const { loadInterfaceXML } = imports.misc.fileUtils;
 
@@ -692,8 +691,5 @@ function initEnvironment() {
 function main(argv) {
     initEnvironment();
 
-    Gettext.bindtextdomain(Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
-    Gettext.textdomain(Config.GETTEXT_PACKAGE);
-
     new Application().run(argv);
 }